Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validate data messages #25

Merged
merged 1 commit into from
Jul 21, 2016
Merged

Validate data messages #25

merged 1 commit into from
Jul 21, 2016

Conversation

mddub
Copy link
Owner

@mddub mddub commented Jul 21, 2016

Instead of having different components access the app message directly, this change validates the data app message (in case it's from a client using a format which differs from the Urchin JS) and stores the result in a DataMessage, which is used instead. This mostly fixes #20.

This also paves the way for caching data messages on the watch (so that the last-received data appears immediately on load) and other minor improvements (e.g. making the staleness state of the BG element consistent with the graph, avoiding redraws on unchanged data to save battery).

@mddub mddub merged commit f81c50e into master Jul 21, 2016
@mddub mddub mentioned this pull request Jul 21, 2016
@mddub mddub deleted the validate-app-messages branch August 6, 2016 02:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Camping mode
1 participant